package org.javawork.cloudalibaba.service.impl;

import org.javawork.cloudalibaba.service.PaymentService;
import org.javawork.springcloud.entities.CommonResult;
import org.javawork.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回,没有该流水信息", new Payment(id, "errorSerial......"));
    }
}
